#include<stdio.h>
int main()
{
  int a,b,n;
  printf("type the numbers \n");
  scanf("%d %d %d",&a,&b,&n);
  printf("%d %d ",a,b);
  n=n-2;
  if (n>0)
  f(a,b,n);
  else
  return 0;
}
int f(int a,int b,int c)
{
    int s=a+b;
    printf("%d ",s);
    c--;
    if (c==0)
        return 0;
    else
      f(b,s,c);
}
